package com.bsoft.jcxxjs.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TManagementUnitExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TManagementUnitExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(BigDecimal value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(BigDecimal value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(BigDecimal value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(BigDecimal value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<BigDecimal> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<BigDecimal> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTBmnameIsNull() {
            addCriterion("T_BMNAME is null");
            return (Criteria) this;
        }

        public Criteria andTBmnameIsNotNull() {
            addCriterion("T_BMNAME is not null");
            return (Criteria) this;
        }

        public Criteria andTBmnameEqualTo(String value) {
            addCriterion("T_BMNAME =", value, "tBmname");
            return (Criteria) this;
        }

        public Criteria andTBmnameNotEqualTo(String value) {
            addCriterion("T_BMNAME <>", value, "tBmname");
            return (Criteria) this;
        }

        public Criteria andTBmnameGreaterThan(String value) {
            addCriterion("T_BMNAME >", value, "tBmname");
            return (Criteria) this;
        }

        public Criteria andTBmnameGreaterThanOrEqualTo(String value) {
            addCriterion("T_BMNAME >=", value, "tBmname");
            return (Criteria) this;
        }

        public Criteria andTBmnameLessThan(String value) {
            addCriterion("T_BMNAME <", value, "tBmname");
            return (Criteria) this;
        }

        public Criteria andTBmnameLessThanOrEqualTo(String value) {
            addCriterion("T_BMNAME <=", value, "tBmname");
            return (Criteria) this;
        }

        public Criteria andTBmnameLike(String value) {
            addCriterion("T_BMNAME like", value, "tBmname");
            return (Criteria) this;
        }

        public Criteria andTBmnameNotLike(String value) {
            addCriterion("T_BMNAME not like", value, "tBmname");
            return (Criteria) this;
        }

        public Criteria andTBmnameIn(List<String> values) {
            addCriterion("T_BMNAME in", values, "tBmname");
            return (Criteria) this;
        }

        public Criteria andTBmnameNotIn(List<String> values) {
            addCriterion("T_BMNAME not in", values, "tBmname");
            return (Criteria) this;
        }

        public Criteria andTBmnameBetween(String value1, String value2) {
            addCriterion("T_BMNAME between", value1, value2, "tBmname");
            return (Criteria) this;
        }

        public Criteria andTBmnameNotBetween(String value1, String value2) {
            addCriterion("T_BMNAME not between", value1, value2, "tBmname");
            return (Criteria) this;
        }

        public Criteria andTKsnameIsNull() {
            addCriterion("T_KSNAME is null");
            return (Criteria) this;
        }

        public Criteria andTKsnameIsNotNull() {
            addCriterion("T_KSNAME is not null");
            return (Criteria) this;
        }

        public Criteria andTKsnameEqualTo(String value) {
            addCriterion("T_KSNAME =", value, "tKsname");
            return (Criteria) this;
        }

        public Criteria andTKsnameNotEqualTo(String value) {
            addCriterion("T_KSNAME <>", value, "tKsname");
            return (Criteria) this;
        }

        public Criteria andTKsnameGreaterThan(String value) {
            addCriterion("T_KSNAME >", value, "tKsname");
            return (Criteria) this;
        }

        public Criteria andTKsnameGreaterThanOrEqualTo(String value) {
            addCriterion("T_KSNAME >=", value, "tKsname");
            return (Criteria) this;
        }

        public Criteria andTKsnameLessThan(String value) {
            addCriterion("T_KSNAME <", value, "tKsname");
            return (Criteria) this;
        }

        public Criteria andTKsnameLessThanOrEqualTo(String value) {
            addCriterion("T_KSNAME <=", value, "tKsname");
            return (Criteria) this;
        }

        public Criteria andTKsnameLike(String value) {
            addCriterion("T_KSNAME like", value, "tKsname");
            return (Criteria) this;
        }

        public Criteria andTKsnameNotLike(String value) {
            addCriterion("T_KSNAME not like", value, "tKsname");
            return (Criteria) this;
        }

        public Criteria andTKsnameIn(List<String> values) {
            addCriterion("T_KSNAME in", values, "tKsname");
            return (Criteria) this;
        }

        public Criteria andTKsnameNotIn(List<String> values) {
            addCriterion("T_KSNAME not in", values, "tKsname");
            return (Criteria) this;
        }

        public Criteria andTKsnameBetween(String value1, String value2) {
            addCriterion("T_KSNAME between", value1, value2, "tKsname");
            return (Criteria) this;
        }

        public Criteria andTKsnameNotBetween(String value1, String value2) {
            addCriterion("T_KSNAME not between", value1, value2, "tKsname");
            return (Criteria) this;
        }

        public Criteria andTDwxzIsNull() {
            addCriterion("T_DWXZ is null");
            return (Criteria) this;
        }

        public Criteria andTDwxzIsNotNull() {
            addCriterion("T_DWXZ is not null");
            return (Criteria) this;
        }

        public Criteria andTDwxzEqualTo(BigDecimal value) {
            addCriterion("T_DWXZ =", value, "tDwxz");
            return (Criteria) this;
        }

        public Criteria andTDwxzNotEqualTo(BigDecimal value) {
            addCriterion("T_DWXZ <>", value, "tDwxz");
            return (Criteria) this;
        }

        public Criteria andTDwxzGreaterThan(BigDecimal value) {
            addCriterion("T_DWXZ >", value, "tDwxz");
            return (Criteria) this;
        }

        public Criteria andTDwxzGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("T_DWXZ >=", value, "tDwxz");
            return (Criteria) this;
        }

        public Criteria andTDwxzLessThan(BigDecimal value) {
            addCriterion("T_DWXZ <", value, "tDwxz");
            return (Criteria) this;
        }

        public Criteria andTDwxzLessThanOrEqualTo(BigDecimal value) {
            addCriterion("T_DWXZ <=", value, "tDwxz");
            return (Criteria) this;
        }

        public Criteria andTDwxzIn(List<BigDecimal> values) {
            addCriterion("T_DWXZ in", values, "tDwxz");
            return (Criteria) this;
        }

        public Criteria andTDwxzNotIn(List<BigDecimal> values) {
            addCriterion("T_DWXZ not in", values, "tDwxz");
            return (Criteria) this;
        }

        public Criteria andTDwxzBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("T_DWXZ between", value1, value2, "tDwxz");
            return (Criteria) this;
        }

        public Criteria andTDwxzNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("T_DWXZ not between", value1, value2, "tDwxz");
            return (Criteria) this;
        }

        public Criteria andTCityIsNull() {
            addCriterion("T_CITY is null");
            return (Criteria) this;
        }

        public Criteria andTCityIsNotNull() {
            addCriterion("T_CITY is not null");
            return (Criteria) this;
        }

        public Criteria andTCityEqualTo(String value) {
            addCriterion("T_CITY =", value, "tCity");
            return (Criteria) this;
        }

        public Criteria andTCityNotEqualTo(String value) {
            addCriterion("T_CITY <>", value, "tCity");
            return (Criteria) this;
        }

        public Criteria andTCityGreaterThan(String value) {
            addCriterion("T_CITY >", value, "tCity");
            return (Criteria) this;
        }

        public Criteria andTCityGreaterThanOrEqualTo(String value) {
            addCriterion("T_CITY >=", value, "tCity");
            return (Criteria) this;
        }

        public Criteria andTCityLessThan(String value) {
            addCriterion("T_CITY <", value, "tCity");
            return (Criteria) this;
        }

        public Criteria andTCityLessThanOrEqualTo(String value) {
            addCriterion("T_CITY <=", value, "tCity");
            return (Criteria) this;
        }

        public Criteria andTCityLike(String value) {
            addCriterion("T_CITY like", value, "tCity");
            return (Criteria) this;
        }

        public Criteria andTCityNotLike(String value) {
            addCriterion("T_CITY not like", value, "tCity");
            return (Criteria) this;
        }

        public Criteria andTCityIn(List<String> values) {
            addCriterion("T_CITY in", values, "tCity");
            return (Criteria) this;
        }

        public Criteria andTCityNotIn(List<String> values) {
            addCriterion("T_CITY not in", values, "tCity");
            return (Criteria) this;
        }

        public Criteria andTCityBetween(String value1, String value2) {
            addCriterion("T_CITY between", value1, value2, "tCity");
            return (Criteria) this;
        }

        public Criteria andTCityNotBetween(String value1, String value2) {
            addCriterion("T_CITY not between", value1, value2, "tCity");
            return (Criteria) this;
        }

        public Criteria andTCountyIsNull() {
            addCriterion("T_COUNTY is null");
            return (Criteria) this;
        }

        public Criteria andTCountyIsNotNull() {
            addCriterion("T_COUNTY is not null");
            return (Criteria) this;
        }

        public Criteria andTCountyEqualTo(String value) {
            addCriterion("T_COUNTY =", value, "tCounty");
            return (Criteria) this;
        }

        public Criteria andTCountyNotEqualTo(String value) {
            addCriterion("T_COUNTY <>", value, "tCounty");
            return (Criteria) this;
        }

        public Criteria andTCountyGreaterThan(String value) {
            addCriterion("T_COUNTY >", value, "tCounty");
            return (Criteria) this;
        }

        public Criteria andTCountyGreaterThanOrEqualTo(String value) {
            addCriterion("T_COUNTY >=", value, "tCounty");
            return (Criteria) this;
        }

        public Criteria andTCountyLessThan(String value) {
            addCriterion("T_COUNTY <", value, "tCounty");
            return (Criteria) this;
        }

        public Criteria andTCountyLessThanOrEqualTo(String value) {
            addCriterion("T_COUNTY <=", value, "tCounty");
            return (Criteria) this;
        }

        public Criteria andTCountyLike(String value) {
            addCriterion("T_COUNTY like", value, "tCounty");
            return (Criteria) this;
        }

        public Criteria andTCountyNotLike(String value) {
            addCriterion("T_COUNTY not like", value, "tCounty");
            return (Criteria) this;
        }

        public Criteria andTCountyIn(List<String> values) {
            addCriterion("T_COUNTY in", values, "tCounty");
            return (Criteria) this;
        }

        public Criteria andTCountyNotIn(List<String> values) {
            addCriterion("T_COUNTY not in", values, "tCounty");
            return (Criteria) this;
        }

        public Criteria andTCountyBetween(String value1, String value2) {
            addCriterion("T_COUNTY between", value1, value2, "tCounty");
            return (Criteria) this;
        }

        public Criteria andTCountyNotBetween(String value1, String value2) {
            addCriterion("T_COUNTY not between", value1, value2, "tCounty");
            return (Criteria) this;
        }

        public Criteria andTContactsIsNull() {
            addCriterion("T_CONTACTS is null");
            return (Criteria) this;
        }

        public Criteria andTContactsIsNotNull() {
            addCriterion("T_CONTACTS is not null");
            return (Criteria) this;
        }

        public Criteria andTContactsEqualTo(String value) {
            addCriterion("T_CONTACTS =", value, "tContacts");
            return (Criteria) this;
        }

        public Criteria andTContactsNotEqualTo(String value) {
            addCriterion("T_CONTACTS <>", value, "tContacts");
            return (Criteria) this;
        }

        public Criteria andTContactsGreaterThan(String value) {
            addCriterion("T_CONTACTS >", value, "tContacts");
            return (Criteria) this;
        }

        public Criteria andTContactsGreaterThanOrEqualTo(String value) {
            addCriterion("T_CONTACTS >=", value, "tContacts");
            return (Criteria) this;
        }

        public Criteria andTContactsLessThan(String value) {
            addCriterion("T_CONTACTS <", value, "tContacts");
            return (Criteria) this;
        }

        public Criteria andTContactsLessThanOrEqualTo(String value) {
            addCriterion("T_CONTACTS <=", value, "tContacts");
            return (Criteria) this;
        }

        public Criteria andTContactsLike(String value) {
            addCriterion("T_CONTACTS like", value, "tContacts");
            return (Criteria) this;
        }

        public Criteria andTContactsNotLike(String value) {
            addCriterion("T_CONTACTS not like", value, "tContacts");
            return (Criteria) this;
        }

        public Criteria andTContactsIn(List<String> values) {
            addCriterion("T_CONTACTS in", values, "tContacts");
            return (Criteria) this;
        }

        public Criteria andTContactsNotIn(List<String> values) {
            addCriterion("T_CONTACTS not in", values, "tContacts");
            return (Criteria) this;
        }

        public Criteria andTContactsBetween(String value1, String value2) {
            addCriterion("T_CONTACTS between", value1, value2, "tContacts");
            return (Criteria) this;
        }

        public Criteria andTContactsNotBetween(String value1, String value2) {
            addCriterion("T_CONTACTS not between", value1, value2, "tContacts");
            return (Criteria) this;
        }

        public Criteria andTTelIsNull() {
            addCriterion("T_TEL is null");
            return (Criteria) this;
        }

        public Criteria andTTelIsNotNull() {
            addCriterion("T_TEL is not null");
            return (Criteria) this;
        }

        public Criteria andTTelEqualTo(String value) {
            addCriterion("T_TEL =", value, "tTel");
            return (Criteria) this;
        }

        public Criteria andTTelNotEqualTo(String value) {
            addCriterion("T_TEL <>", value, "tTel");
            return (Criteria) this;
        }

        public Criteria andTTelGreaterThan(String value) {
            addCriterion("T_TEL >", value, "tTel");
            return (Criteria) this;
        }

        public Criteria andTTelGreaterThanOrEqualTo(String value) {
            addCriterion("T_TEL >=", value, "tTel");
            return (Criteria) this;
        }

        public Criteria andTTelLessThan(String value) {
            addCriterion("T_TEL <", value, "tTel");
            return (Criteria) this;
        }

        public Criteria andTTelLessThanOrEqualTo(String value) {
            addCriterion("T_TEL <=", value, "tTel");
            return (Criteria) this;
        }

        public Criteria andTTelLike(String value) {
            addCriterion("T_TEL like", value, "tTel");
            return (Criteria) this;
        }

        public Criteria andTTelNotLike(String value) {
            addCriterion("T_TEL not like", value, "tTel");
            return (Criteria) this;
        }

        public Criteria andTTelIn(List<String> values) {
            addCriterion("T_TEL in", values, "tTel");
            return (Criteria) this;
        }

        public Criteria andTTelNotIn(List<String> values) {
            addCriterion("T_TEL not in", values, "tTel");
            return (Criteria) this;
        }

        public Criteria andTTelBetween(String value1, String value2) {
            addCriterion("T_TEL between", value1, value2, "tTel");
            return (Criteria) this;
        }

        public Criteria andTTelNotBetween(String value1, String value2) {
            addCriterion("T_TEL not between", value1, value2, "tTel");
            return (Criteria) this;
        }

        public Criteria andTDateIsNull() {
            addCriterion("T_DATE is null");
            return (Criteria) this;
        }

        public Criteria andTDateIsNotNull() {
            addCriterion("T_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andTDateEqualTo(Date value) {
            addCriterion("T_DATE =", value, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateNotEqualTo(Date value) {
            addCriterion("T_DATE <>", value, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateGreaterThan(Date value) {
            addCriterion("T_DATE >", value, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateGreaterThanOrEqualTo(Date value) {
            addCriterion("T_DATE >=", value, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateLessThan(Date value) {
            addCriterion("T_DATE <", value, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateLessThanOrEqualTo(Date value) {
            addCriterion("T_DATE <=", value, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateIn(List<Date> values) {
            addCriterion("T_DATE in", values, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateNotIn(List<Date> values) {
            addCriterion("T_DATE not in", values, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateBetween(Date value1, Date value2) {
            addCriterion("T_DATE between", value1, value2, "tDate");
            return (Criteria) this;
        }

        public Criteria andTDateNotBetween(Date value1, Date value2) {
            addCriterion("T_DATE not between", value1, value2, "tDate");
            return (Criteria) this;
        }

        public Criteria andTCreaterIsNull() {
            addCriterion("T_CREATER is null");
            return (Criteria) this;
        }

        public Criteria andTCreaterIsNotNull() {
            addCriterion("T_CREATER is not null");
            return (Criteria) this;
        }

        public Criteria andTCreaterEqualTo(String value) {
            addCriterion("T_CREATER =", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterNotEqualTo(String value) {
            addCriterion("T_CREATER <>", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterGreaterThan(String value) {
            addCriterion("T_CREATER >", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterGreaterThanOrEqualTo(String value) {
            addCriterion("T_CREATER >=", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterLessThan(String value) {
            addCriterion("T_CREATER <", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterLessThanOrEqualTo(String value) {
            addCriterion("T_CREATER <=", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterLike(String value) {
            addCriterion("T_CREATER like", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterNotLike(String value) {
            addCriterion("T_CREATER not like", value, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterIn(List<String> values) {
            addCriterion("T_CREATER in", values, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterNotIn(List<String> values) {
            addCriterion("T_CREATER not in", values, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterBetween(String value1, String value2) {
            addCriterion("T_CREATER between", value1, value2, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTCreaterNotBetween(String value1, String value2) {
            addCriterion("T_CREATER not between", value1, value2, "tCreater");
            return (Criteria) this;
        }

        public Criteria andTStateIsNull() {
            addCriterion("T_STATE is null");
            return (Criteria) this;
        }

        public Criteria andTStateIsNotNull() {
            addCriterion("T_STATE is not null");
            return (Criteria) this;
        }

        public Criteria andTStateEqualTo(BigDecimal value) {
            addCriterion("T_STATE =", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateNotEqualTo(BigDecimal value) {
            addCriterion("T_STATE <>", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateGreaterThan(BigDecimal value) {
            addCriterion("T_STATE >", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("T_STATE >=", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateLessThan(BigDecimal value) {
            addCriterion("T_STATE <", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("T_STATE <=", value, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateIn(List<BigDecimal> values) {
            addCriterion("T_STATE in", values, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateNotIn(List<BigDecimal> values) {
            addCriterion("T_STATE not in", values, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("T_STATE between", value1, value2, "tState");
            return (Criteria) this;
        }

        public Criteria andTStateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("T_STATE not between", value1, value2, "tState");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table T_MANAGEMENT_UNIT
     *
     * @mbggenerated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}